package com.china.produce.factorys;

import com.china.produce.pojo.User;
import org.springframework.beans.factory.FactoryBean;

/**
 * @ClassName
 * @Author niujie
 * @Version
 * @Description
 * @CreateTime 2023/1/12
 */
public class UserFactoryBean implements FactoryBean<User> {


    @Override
    public User getObject() throws Exception {

        User user = new User();

        user.setUserName("test - user");

        return user;
    }

    @Override
    public Class<?> getObjectType() {

        return User.class;
    }
}
